Skip to content

Fix Drag Mode Angular Momentum [AARD-1966] #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 19, 2025
Merged

Conversation

rutmanz
Copy link
Member

@rutmanz rutmanz commented Jul 15, 2025

Task

AARD-1966

Gamepieces and other objects gain excessive angular momentum when held for short periods of time causing them to get launched once released.

Symptom

Gamepieces and other picked-up objects behave erratically with regards to angular momentum and do a lot of undesirable spinning

Solution

Replaced the calculated torques from gravity with manual control to allow the user to control yaw (absolute coordinates) and pitch (camera relative) of whatever they're carrying. I believe this is the behavior that god mode used to have

Verification

Spawn a field, enter drag mode, start dragging things, fling them, angular momentum looks not crazy. The arrow keys control the angle, although other input consumers aren't blocked currently so a robot with Luna's control scheme would drive around. This could be changed if we would rather block all inputs during drag mode


Before merging, ensure the following criteria are met:

  • All acceptance criteria outlined in the ticket are met.
  • Necessary test cases have been added and updated.
  • A feature toggle or safe disable path has been added (if applicable).
  • User-facing polish:
    • Ask: "Is this ready-looking?"
  • Cross-linking between Jira and GitHub:
    • PR links to the relevant Jira issue.
    • Jira ticket has a comment referencing this PR.

@rutmanz rutmanz requested review from a team as code owners July 15, 2025 21:03
@rutmanz rutmanz self-assigned this Jul 15, 2025
@rutmanz rutmanz added the gameplay Relating to the playability of Synthesis label Jul 15, 2025
@AlexD717 AlexD717 marked this pull request as draft July 15, 2025 21:34
@AlexD717 AlexD717 marked this pull request as ready for review July 15, 2025 21:35
@rutmanz rutmanz marked this pull request as draft July 15, 2025 21:43
Copy link
Contributor

@azaleacolburn azaleacolburn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no angular velocity, no problems! lgtm :P

@rutmanz rutmanz force-pushed the zachr/1966/dragmodemomentum branch from b50e615 to 5167227 Compare July 15, 2025 22:29
@rutmanz rutmanz marked this pull request as ready for review July 15, 2025 22:30
Copy link
Contributor

@ariesninjadev ariesninjadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully this works on azalea's laptop

Copy link
Member

@AlexD717 AlexD717 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

BrandonPacewic and others added 2 commits July 18, 2025 12:31
* dev: (89 commits)
  feat: speedup playwright using docker image
  chore: formatting
  Mock OPFS API
  chore: formatting
  chore: merge conflicts and breaking
  chore: fix mypy lint errors
  fix: file dialog names
  fix: runtime exception is no longer raised by a lack of rigid components
  fix: clean up center of mass indicator on robot destroy correctly
  fix(exporter): revert image file update
  fix: mypy + formatting
  refactor: update old handling in jointhierarchy
  refactor: updated error handling in APS system
  fix: duplicate identifier
  Added station selection
  chore: format and fix mypy
  fix: message logging for field exports and reloading
  fix: correct call stack
  feat: caller function and line number printed in error message
  chore: remove unused utility functions
  ...
@PepperLola PepperLola merged commit 497de7c into dev Jul 19, 2025
16 checks passed
@PepperLola PepperLola deleted the zachr/1966/dragmodemomentum branch July 19, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gameplay Relating to the playability of Synthesis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants